import {get, post, del, put} from "@/apis/http/request";
import {ShopCard} from "@/apis/model/shop/ShopCardModel";

/**
* 得到列表
* @param params
*/
export const getShopCardList = (params: any) => get("/shopCard/list", params)

/**
* 得到分页列表
* @param params
*/
export const shopCardPage = (params: any) => post("/shopCard/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteShopCardById = (id: number) => del("/shopCard/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertShopCard = (param: ShopCard) => post("/shopCard", param)

/**
* 更新数据
* @param param
*/
export const updateShopCard = (param: ShopCard) => put("/shopCard", param)